<form onsubmit="return filter(this)">
<ul style="list-style:none;width: auto;padding: 0;margin: 0;">
<#list filter as menu>
<li style="float:left;<#if menu_index gt 0>margin-left: 5px;</#if>" class="<#if selectindex == menu_index+1>active</#if> treeview">
        <#if menu.type == 'DATE'>
            <div class="input-group" style="width: 150px;">
                <div class="input-group-addon">
                    <i class="fa fa-calendar"></i>
                </div>
                <input type="text" class="form-control pull-left" name="${menu.field}" placeholder="${menu.name}" id="filter_input_date_${menu_index}" value="">
            </div>
        </#if>
        <#if menu.type == 'SELECTED'>
            <select class="form-control" id="filter_input_select_${menu_index}" name="${menu.field}" style="display:initial;width: auto;">
                <#list menu.select.options as option>
                    <option value="${option.id}">${option.value}</option>
                </#list>
            </select>

        </#if>
</li>
</#list>
    <#if filter?size gt 0 >
    <button class="btn btn-info" style="padding: 5px 12px;margin-left: 10px;" type="submit">筛选</button>
    </#if>
</ul>

</form>